package com.wirelesshomecontrol.gui.windows;

import com.vaadin.terminal.Sizeable;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.PopupView;
import com.vaadin.ui.ProgressIndicator;
import com.vaadin.ui.Window;

public class AddingModuleWindow {

	static final Label ADDING_TEXT = new Label("Adding Module");
	
	GridLayout grid = new GridLayout(3,2);
	Window addingWindow = new Window();

	public Window getAddingWindow() {
		return addingWindow;
	}

	public void setAddingWindow(Window addingWindow) {
		this.addingWindow = addingWindow;
	}

	public AddingModuleWindow(){
		//Searching Window Init
		initAddingWindow();
	}

	@SuppressWarnings("deprecation")
	private void initAddingWindow(){
		addingWindow = new Window();
		grid.setWidth(400, Sizeable.UNITS_PIXELS);
		grid.setHeight(100,Sizeable.UNITS_PIXELS);
		addingWindow.setCaption("Add New Module Information");
		addingWindow.setPositionX(100);
		addingWindow.setPositionY(100);
		addingWindow.setWidth(400, Sizeable.UNITS_PIXELS);
		addingWindow.setHeight(150, Sizeable.UNITS_PIXELS);
		grid.addComponent(ADDING_TEXT,1,0);
		grid.setComponentAlignment(ADDING_TEXT, "middle center");
		addingWindow.addComponent(grid);
	}
}


